/* UTF8 Encoding */
/*-----------------------------------------------------------------------
|                            FILE DESCRIPTION                           |
-----------------------------------------------------------------------*/
/*----------------------------------------------------------------------
  - File name     : smartlock.h
  - Author        : liuzhihua (liuzhihuawy@163.com)
  - Update date   : 2024.08.31
  - Brief         : smartlock api library
  - Version       : v0.2
-----------------------------------------------------------------------*/
/*-----------------------------------------------------------------------
|                               UPDATE NOTE                             |
-----------------------------------------------------------------------*/
/**
  * Update note:
  * ------------   ---------------   ----------------------------------
  *     Date            Author                      Note
  * ------------   ---------------   ----------------------------------
  *  2024.08.28       liuzhihua                  Create file          
***/

#ifndef SMARTLOCK_H
#define SMARTLOCK_H

/*-----------------------------------------------------------------------
|                               INCLUDES                                |
-----------------------------------------------------------------------*/
#include <stdint.h>

/*-----------------------------------------------------------------------
|                                DEFINES                                |
-----------------------------------------------------------------------*/

class SmartLock
{
    public:
        SmartLock(void);

        uint8_t ledState;
        float vbat;
        float openLockAngle;
        int autoCloseTime;
        bool isLocked;

        void setLedState(uint8_t state);
        bool setLockState(bool state);
        bool lock(void);
        bool unlock(void);
    private:


};



/*-----------------------------------------------------------------------
|                                  API                                  |
-----------------------------------------------------------------------*/
#ifdef  __cplusplus
    extern "C" {
#endif

int at_send_data(const uint8_t *txdata, uint16_t size);




#ifdef __cplusplus
	}
#endif
#endif
